<template>
  <Bar :chartData="chartData" />
</template>

<script setup>
import { ref } from "vue";
import Bar from "./components/Bar.vue";

// **模拟后端返回数据**
const chartData = ref({
  series: [
    { code: "11", name: "一号", count: 112 },
    { code: "12", name: "一号1", count: 114 },
    { code: "13", name: "一号2", count: 123 },
    { code: "13", name: "一号221", count: 1223 },
    { code: "13", name: "一号12", count: 88 },
  ],
});
</script>